<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ghostscript</Name>
        <Homepage>http://www.ghostscript.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3+</License>
        <IsA>library</IsA>
        <Summary>A PostScript interpreter and renderer</Summary>
        <Description>ghostscript is a set of software that provides a PostScript interpreter, a set of C procedures and an interpreter for PDF files. ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers.</Description>
        <Archive sha1sum="ed63f43482f5af60dff52e81b2d9478da3ad1e3e" type="tarxz">https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs920/ghostscript-9.20.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>tiff-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libSM-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency versionFrom="2.8">lcms2-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libpaper-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">fedora/ghostscript-sys-zlib.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-cve-2016-7976.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-cve-2016-7977.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-cve-2016-7978.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-cve-2016-7979.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-cve-2016-8602.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-cve-2016-9601.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-fix-openjpeg-system-build.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-handle-glyphdirectory-correctly.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-remove-and-reimplement-ConvertUTF.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-run-dvipdf-securely.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-runlibfileifexists.patch</Patch>
            <Patch level="1">fedora/ghostscript-9.20-urw-fonts-naming.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>ghostscript</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency versionFrom="2.8">lcms2</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libpaper</Dependency>
            <Dependency>fontconfig</Dependency>
            <!-- For CMap fonts -->
            <Dependency>poppler-data</Dependency>
            <Dependency>gnu-gs-fonts-std</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/cups</Path>
            <Path fileType="data">/usr/share/ghostscript</Path>
        </Files>
        <!--
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/ghostscript/9.00/Resource/Init/CIDFnmap">fedora/CIDFnmap</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/ghostscript/9.00/Resource/Init/cidfmap">fedora/cidfmap</AdditionalFile>
        </AdditionalFiles>
        -->
    </Package>

    <Package>
        <Name>ghostscript-docs</Name>
        <Summary>Documentation for ghostscript</Summary>
        <Files>
            <Path fileType="doc">/usr/share/doc/ghostscript/html</Path>
            <Path fileType="doc">/usr/share/doc/ghostscript/examples</Path>
        </Files>
    </Package>

    <Package>
        <Name>ghostscript-devel</Name>
        <Summary>Development files for ghostscript</Summary>
        <RuntimeDependencies>
            <Dependency release="current">ghostscript</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/ijs-config</Path>
            <Path fileType="header">/usr/include/ghostscript</Path>
            <Path fileType="header">/usr/include/ijs</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>ghostscript-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for ghostscript</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>tiff-32bit</Dependency>
            <Dependency>lcms2-32bit</Dependency>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>libidn-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">ghostscript</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>tiff-32bit</Dependency>
            <Dependency>lcms2-32bit</Dependency>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-05</Date>
            <Version>9.20</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>9.19</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-01</Date>
            <Version>9.19</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-10</Date>
            <Version>9.15</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
